import React, {lazy} from 'react';
import { BrowserRouter, Router, Routes, Route, Link } from 'react-router-dom';

// 导入其他页面组件
const Home = lazy(() => import('../Views/Home/index'));
const Main = lazy(() => import('../Views/Main/index'));
const About = lazy(() => import('../Views/About/index'));

const Routers = () => {
  return (
  	<BrowserRouter>
	      <Routes>
	        <Route path="/*" element={<Main />} />
	        <Route path="/home" element={<Home />} />
	        <Route path="/about" element={<About />} />
	      </Routes>
    </BrowserRouter>
  );
};

export default Routers;
